home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / 1G29NEV (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  1.2 KB  |  39 lines

  1. package com.sun.java.swing.border;
  2.  
  3. import java.awt.Component;
  4. import java.awt.Graphics;
  5. import java.awt.Insets;
  6. import java.io.Serializable;
  7.  
  8. public class EmptyBorder extends AbstractBorder implements Serializable {
  9.    protected int left;
  10.    protected int right;
  11.    protected int top;
  12.    protected int bottom;
  13.  
  14.    public EmptyBorder(int top, int left, int bottom, int right) {
  15.       this.top = top;
  16.       this.right = right;
  17.       this.bottom = bottom;
  18.       this.left = left;
  19.    }
  20.  
  21.    public EmptyBorder(Insets insets) {
  22.       this.top = insets.top;
  23.       this.right = insets.right;
  24.       this.bottom = insets.bottom;
  25.       this.left = insets.left;
  26.    }
  27.  
  28.    public Insets getBorderInsets(Component c) {
  29.       return new Insets(this.top, this.left, this.bottom, this.right);
  30.    }
  31.  
  32.    public boolean isBorderOpaque() {
  33.       return false;
  34.    }
  35.  
  36.    public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
  37.    }
  38. }
  39.